BUAA研究生课程矩阵理论Matrix Theory - hw5本页总览Matrix Theory - hw5矩阵函数 etAe^{tA}etA import numpy as npfrom scipy.linalg import expm# 定义方阵AA = np.array([[1, 1], [0, 2]])# 计算e^AexpA = expm(A)print("e^A=\n", expA)# 计算|e^A|determinant = np.linalg.det(expA)print("|e^A|=", determinant)